set(_target "erhe_math")
add_library(${_target})
add_library(erhe::math ALIAS ${_target})

erhe_target_sources_grouped(
    ${_target} TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES
    erhe_math/math_util.cpp
    erhe_math/math_util.hpp
    erhe_math/simulation_variable.cpp
    erhe_math/simulation_variable.hpp
    erhe_math/viewport.cpp
    erhe_math/viewport.hpp
)

target_include_directories(${_target} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

target_link_libraries(
    ${_target}
    PUBLIC
        glm::glm-header-only
    PRIVATE
        erhe::log
        erhe::profile
        erhe::verify
        MathGeoLib
)
erhe_target_settings(${_target})
set_property(TARGET ${_target} PROPERTY FOLDER "erhe")
